package com.haiyou.dc.message.constant;


import com.haiyou.dc.message.util.PropertiesUtil;

/**
 * @author pc
 */
public class OpenfireConstant {
    /**
     * redis 配置
     */
    public static final String HOST = PropertiesUtil.get("redis.host");
    public static final int PORT = Integer.parseInt(PropertiesUtil.get("redis.port"));
    public static final String AUTH = PropertiesUtil.get("redis.password");
    /**
     * 消息通道
     */
    public static final String CHANNEL = PropertiesUtil.get("redis.channel");
    public static final String TYPE = "type";
    public static final String CREATE_USER = "createUser";

    /**
     * 保存信息
     */
    public static final String SAVE_MSG_URL="https://localhost:8800/dc-api/imMessage/save";

    /**
     * 删除撤回消息
     */
    public static final String DELETE_WITHDRAW_MSG_URL="http://localhost:8800/dc-api/imMessage/deleteWithdraw";

    /**
     * 0表示全部发送
     */
    public static final String SEND_RECEIVER = "0";
    /**
     * 单聊type=1
     */
    public static final String SINGLE_CHAT = "1";
    /**
     * 群聊type=2
     */
    public static final String GROUP_CHAT = "2";
    /**
     * 群聊type=withdraw
     */
    public static final String WITHDRAW = "withdraw";

}
